﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Shop.Core;
using Shop.Intermediate.Data;
using DoNet.Common.Utilities;

namespace Shop.WebApp.SysBase
{
    public partial class DepartmentAdd :BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            string message = string.Empty;
            try
            {
                //DepartmentCore dptFcade = new DepartmentCore();
                //IDepartment entity = dptFcade.NewEntity();
                //FormHelper<IDepartment>.Instance.UpdateModel(form1, entity);
                //if (dptFcade.(entity, ref message))
                //{
                //    dptFcade.SubmitChanges();
                //    MessageBox.Show(this.Page, message, "DepartmentList.aspx");
                //    return;
                //}
                //MessageBox.Show(this.Page, message);
            }
            catch (Exception ex)
            {
                ProcessUnhandledException(ex);
            }
        }
    }
}
